' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   F i l e   n a m e :     W X M _ 6 0 0 E _ S e q _ 3 . t x t                                           D a t e :   1 1   M a y   2 0 2 0 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   M i c r o S t e p p e r   s t e p p e r     s t e p   f o r   r u n 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   E n c o d e r   2 0 0   p p r 
 
 '   H A L   r e c o g n i z e   8 0 0   p p r 
 
 '   S t e p p e r   1 . 8   d e g r e e 
 
 '   S t e p   p e r   f u l l   t u r n   =   8 0 0   ( j u m p e r   o n   B ) 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 ' L o a d   P O C . j p g 
 
 O p t i o n   S p e e d   9 
 
 
 
 B u t t o n     1   T e x t   " H O M E " 
 
 B u t t o n     1   C o l o r   S k y B l u e 
 
 B u t t o n     2   T e x t   " H o m i n g _ M 0 " 
 
 B u t t o n     2   C o l o r   S k y B l u e 
 
 B u t t o n     3   T e x t   " H o m i n g _ M 1 " 
 
 B u t t o n     3   C o l o r   S k y B l u e 
 
 B u t t o n     4   T e x t   " H o m i n g _ M 2   Z " 
 
 B u t t o n     4   C o l o r   S k y B l u e 
 
 B u t t o n     5   T e x t   " S C I U S C I A   M 0 " 
 
 B u t t o n     5   C o l o r   A q u a m a r i n e 
 
 B u t t o n     6   T e x t   " S C I U S C I A   M 1 " 
 
 B u t t o n     6   C o l o r   A q u a m a r i n e 
 
 B u t t o n     7   T e x t   " S C I U S C I A   M 2   Z " 
 
 B u t t o n     7   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   1 2   T e x t   " S c i u s c i a   t u n e " 
 
 B u t t o n   1 2   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   1 3   T e x t   " E n a b l e   M o t o r s " 
 
 B u t t o n   1 3   C o l o r   T a n 
 
 B u t t o n   1 4   T e x t   " D i s a b l e   M o t o r s " 
 
 B u t t o n   1 4   C o l o r   T a n 
 
 
 
 ' B u t t o n   1 5   T e x t   " U P D A T E   F I L E " 
 
 
 
 B u t t o n   1 6   T e x t   " C L O S E   A L L " 
 
 B u t t o n   1 6   C o l o r   R e d 
 
 
 
 K e y   R i g h t 	 	 G o s u b   M o v e R i g h t 
 
 K e y   L e f t   	 	 G o s u b   M o v e L e f t 
 
 K e y   U p   	 	 	 G o s u b   M o v e U p 
 
 K e y   D o w n   	 	 G o s u b   M o v e D o w n 
 
 K e y   P a g e u p 	 	 G o s u b   M o v e U p p e r 
 
 K e y   P a g e d o w n 	 G o s u b   M o v e L o w e r 
 
 K e y   M 	 	 	 G o s u b   " E n a b l e   M o t o r s " 
 
 
 
 V a r i a b l e   N u m e r i c   N u m M o t o r s 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 0 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 3 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 4 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 5 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 6 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 7 
 
 V a r i a b l e   N u m e r i c   S l o t _ M 8 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e n s o r M 0 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e n s o r M 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ S e n s o r M 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o u n t e r R e a d e r O u t M 0 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o u n t e r R e a d e r O u t M 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o u n t e r R e a d e r O u t M 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o u n t e r R e a d e r O u t M 3 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o u n t e r R e a d e r O u t M 4 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o u n t e r R e a d e r O u t M 5 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o u n t e r R e a d e r O u t M 6 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o u n t e r R e a d e r O u t M 7 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o u n t e r R e a d e r O u t M 8 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o u n t e r R e a d e r R e s e t M 0 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o u n t e r R e a d e r R e s e t M 1 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o u n t e r R e a d e r R e s e t M 2 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o u n t e r R e a d e r R e s e t M 3 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o u n t e r R e a d e r R e s e t M 4 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o u n t e r R e a d e r R e s e t M 5 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o u n t e r R e a d e r R e s e t M 6 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o u n t e r R e a d e r R e s e t M 7 
 
 V a r i a b l e   N u m e r i c   S l o t _ C o u n t e r R e a d e r R e s e t M 8 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n a b l e M o t o r s 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d R 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d G 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d B 
 
 
 
 
 
 N u m M o t o r s   =   3 
 
 S l o t _ M 0   =   1 
 
 S l o t _ M 1   =   3 
 
 S l o t _ M 2   =   5 
 
 
 
 S l o t _ S e n s o r M 0   =   1 9 
 
 S l o t _ S e n s o r M 1   =   2 0 
 
 S l o t _ S e n s o r M 2   =   2 1 
 
 
 
 S l o t _ C o u n t e r R e a d e r O u t M 0   =   2 6 
 
 S l o t _ C o u n t e r R e a d e r R e s e t M 0   =   2 5 
 
 
 
 S l o t _ C o u n t e r R e a d e r O u t M 1   =   2 8 
 
 S l o t _ C o u n t e r R e a d e r R e s e t M 1   =   2 7 
 
 
 
 S l o t _ C o u n t e r R e a d e r O u t M 2   =   3 0 
 
 S l o t _ C o u n t e r R e a d e r R e s e t M 2   =   2 9 
 
 
 
 S l o t _ E n a b l e M o t o r s   =   2 2 
 
 
 
 S l o t _ L e d R   =   1 6 
 
 S l o t _ L e d G   =   1 7 
 
 S l o t _ L e d B   =   1 8 
 
 
 
 V a r i a b l e   N u m e r i c   N u m T e s t 
 
 V a r i a b l e   N u m e r i c   N u m C y c l e s 
 
 V a r i a b l e   N u m e r i c   E r r o r N u m b e r 
 
 
 
 V a r i a b l e   S t r i n g   F i l e N a m e 
 
 V a r i a b l e   S t r i n g   F i l e H e a d e r 
 
 
 
 F i l e N a m e   =   " L o g _ E n c o d e r _ 0 _ 2 0 0 . t x t " 
 
 F i l e H e a d e r   =   " -   D A T E   -   "   +   "     -   T I M E   -   "   +   "     C Y C L E   "   +   "   D e s t . = 0   "   +   "   D e s t . = 5 0   "   +   +   "   P u l s e " 
 
 S a v e   S t r i n g T o F i l e   F i l e H e a d e r   F i l e N a m e 
 
 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   L O A D   E X T E R N A L   P R O G R A M S 
 
 L o a d   " T h e r e m i n o _ H A L \ T h e r e m i n o _ H A L . e x e " 
 
 L o a d   " T h e r e m i n o _ H A L \ T h e r e m i n o _ S l o t V i e w e r . e x e " 
 
 L o a d   " T h e r e m i n o _ H A L \ T h e r e m i n o _ C o u n t e r R e a d e r 1 . e x e " 
 
 L o a d   " T h e r e m i n o _ H A L \ T h e r e m i n o _ C o u n t e r R e a d e r 2 . e x e " 
 
 ' L o a d   " T h e r e m i n o _ H A L \ T h e r e m i n o _ C o u n t e r R e a d e r 3 . e x e " 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   T E S T   M A S T E R   P R E S E N T 
 
 F o r   v 1   =   1   T o   9 e 9 9 
 
 	 F o r   v 2   =   1   T o   2 0   '   < < <   t e s t i n g   f o r   2   s e c o n d s 
 
 	 	 I f   ( S l o t ( 0 )   > =   1   A n d   S l o t ( 0 )   < =   2 )   O r   K e y ( " C T R L " ) 
 
 	 	 	 E x i t   2 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 1 
 
 	 N e x t 
 
 	 P r i n t   "   I n v a l i d   m a s t e r   n u m b e r :   "   +   S l o t ( 0 ) 
 
 	 S l o t   0   =   R e c o g n i z e 
 
 	 B e e p 
 
 N e x t 
 
 P r i n t   " " 
 
 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   C O L O R 
 
 
 
 ' G o s u b   " W H I T E " 
 
 ' W a i t   S e c o n d s   0 . 1 
 
 ' G o s u b   " R E D " 
 
 ' W a i t   S e c o n d s   0 . 1 
 
 ' G o s u b   " G R E E N " 
 
 ' W a i t   S e c o n d s   0 . 1 
 
 ' G o s u b   " B L U " 
 
 ' W a i t   S e c o n d s   0 . 1 
 
 
 
 S t o p 
 
 
 
 
 
 
 
 ' W A T C H   S e q u e n c e C m d 
 
 ' W A T C H   s 1 
 
 ' W A T C H   U C a s e ( S e q u e n c e C m d ) 
 
 